import request from '@/utils/request'

// 查询标准成本列表
export function listStandardCosts(query) {
  return request({
    url: '/financial/standardCosts/list',
    method: 'get',
    params: query
  })
}

// 查询标准成本详细
export function getStandardCosts(standardCostId) {
  return request({
    url: '/financial/standardCosts/' + standardCostId,
    method: 'get'
  })
}

// 新增标准成本
export function addStandardCosts(data) {
  return request({
    url: '/financial/standardCosts',
    method: 'post',
    data: data
  })
}

// 修改标准成本
export function updateStandardCosts(data) {
  return request({
    url: '/financial/standardCosts',
    method: 'put',
    data: data
  })
}

// 删除标准成本
export function delStandardCosts(standardCostId) {
  return request({
    url: '/financial/standardCosts/' + standardCostId,
    method: 'delete'
  })
}
